﻿using AIVision.UI.Views;
using Prism.DryIoc;
using Prism.Ioc;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;
using AIVision.PLC;
using AIVision.Repository;
using AIVision.Model;
using AIVision.Inspect;
using Prism.Regions;

namespace AIVision.UI
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : PrismApplication
    {
        protected override Window CreateShell()
        {
            return Container.Resolve<MainView>();
        }

        protected override void RegisterTypes(IContainerRegistry containerRegistry)
        {
            containerRegistry.RegisterForNavigation<TopView>("TopView");
            containerRegistry.RegisterForNavigation<StartView>("StartView");
            containerRegistry.RegisterForNavigation<ManualCtrlView>("ManualCtrlView");
            containerRegistry.RegisterForNavigation<CameraView>("CameraView");
            containerRegistry.RegisterForNavigation<Views.DataView>("DataView");
            containerRegistry.RegisterForNavigation<SettingView>("SettingView");
            containerRegistry.RegisterForNavigation<SetPLCConfigView>("SetPLCConfigView");
            containerRegistry.RegisterForNavigation<SetCheckTempleteView>("SetCheckTempleteView");
            containerRegistry.RegisterForNavigation<SetCameraView>("SetCameraView");



            containerRegistry.RegisterRepositoryTypes();
            containerRegistry.RegisterModelTypes();
            containerRegistry.RegisterPLCTypes();
            
            containerRegistry.RegisterInspectTypes();


            
        }

  
    }
}
